package com.yzt.index.dialog;

import android.view.View;

import com.yzt.zhuju.arouter.RouterDynamic;
import com.yzt.zhuju.dialog.BottomBaseDialog;
import com.yzt.index.R;

/**
 * 作者：bobwang
 * 创建时间：2023-11-12 21:10:38
 * 描述：
 */
public class MainIndexDialog extends BottomBaseDialog {
    @Override
    public int getLayoutRes() {
        return R.layout.dialog_main_index;
    }

    @Override
    public void bindView(View v) {

        findViewById(R.id.img_close).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                dismissAllowingStateLoss();
            }
        });

        findViewById(R.id.tv_add_game).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                RouterDynamic.GameAddActivity();
                dismissAllowingStateLoss();
            }
        });

        findViewById(R.id.tv_add_dynamic).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                RouterDynamic.CameraEditActivity();
                dismissAllowingStateLoss();
            }
        });
    }
}
